package dynamicProxy;

/**
 * @author Feuler
 */
public class DynamicProxyTest {
    public static void main(String[] args) {
        System.out.println("no proxy");
        Person feuler = new Feuler();
        feuler.doSomething();
        System.out.println("=====================");
        System.out.println("with proxy");
        Person proxy = (Person) new JDKDynamicProxy(new Feuler()).getTarget();
        proxy.doSomething();
    }
}
